home *** CD-ROM | disk | FTP | other *** search
-
-
-
- tttt6666sssseeeennnnddddttttoooo((((3333NNNN)))) tttt6666sssseeeennnnddddttttoooo((((3333NNNN))))
-
-
-
- NNNNAAAAMMMMEEEE
- t6sendto - Specify security attributes to send with data on a trusted
- endpoint
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- cccccccc [[[[ ffffllllaaaaggggssss ............ ]]]] ffffiiiilllleeee
-
- #include <sys/t6attrs.h>
-
- iiiinnnntttt tttt6666sssseeeennnnddddttttoooo((((iiiinnnntttt ffffdddd,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr ****mmmmssssgggg,,,, iiiinnnntttt lllleeeennnn,,,, iiiinnnntttt ffffllllaaaaggggssss,,,,
- ccccoooonnnnsssstttt ssssttttrrrruuuucccctttt ssssoooocccckkkkaaaaddddddddrrrr ****ttttoooo,,,, iiiinnnntttt ttttoooolllleeeennnn,,,,
- ccccoooonnnnsssstttt tttt6666aaaattttttttrrrr____tttt aaaattttttttrrrr____ppppttttrrrr))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _t_6_s_e_n_d_t_o() allows a privileged process to specify the security attributes
- to send with an IPC message. A process may only specify those attributes
- for which it possesses the appropriate override privilege and need not
- specify a full set. Any unspecified attributes are supplied by the
- kernel.
-
- _f_d is a socket created with _s_o_c_k_e_t(_3_N). The address of the target is
- given by _t_o with _t_o_l_e_n specifying its size. The length of the message is
- given by _l_e_n.
-
- The _t_o pointer and _t_o__l_e_n parameters are only used if you are specifying
- the destination address, otherwise they should be set to _0. You may not
- specify the address if the trusted endpoint was created for a connection
- oriented protocol, such as TCP. If the message is too long to pass
- atomically through the underlying protocol, then the error EEEEMMMMSSSSGGGGSSSSIIIIZZZZEEEE is
- returned, and the message is not transmitted.
-
- A return value of -_1 indicates locally detected errors only. It does not
- implicitly mean the message was not delivered.
-
- tttt6666sssseeeennnnddddttttoooo(((()))) will return -1 and set errno to _E_I_N_V_A_L if any attempt is made
- to specify a _t_6_a_t_t_r__t with any of these attributes: TTTT6666____NNNNAAAATTTT____CCCCAAAAVVVVEEEEAAAATTTTSSSS,
- TTTT6666____AAAACCCCLLLL, TTTT6666____IIIILLLL, TTTT6666____PPPPIIIIDDDD, TTTT6666____RRRREEEESSSSVVVV11110000, TTTT6666____AAAAUUUUDDDDIIIITTTT____IIIINNNNFFFFOOOO.
-
- The _f_l_a_g_s parameter is formed from the bitwise OR of zero or more of the
- following:
-
- MSG_OOB Send out-of-band data and any security attributes
- specified by a privileged process on sockets that
- support this notion. The underlying protocol must
- also support out-of-band data. Data and attributes
- sent with this flag are typically not subject to the
- internal buffering normally applied by the network to
- improve network efficiency.
-
- MSG_DONTROUTE The SO_DONTROUTE option is turned on for the duration
- of the operation. It is used only by diagnostic or
- routing programs.
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- tttt6666sssseeeennnnddddttttoooo((((3333NNNN)))) tttt6666sssseeeennnnddddttttoooo((((3333NNNN))))
-
-
-
- The security attributes are specified by the _a_t_t_r__p_t_r parameter. To set
- up _a_t_t_r__p_t_r, see _t_6_s_e_t__a_t_t_r(_3_N).
-
- CCCCAAAAPPPPAAAABBBBIIIILLLLIIIITTTTIIIIEEEESSSS
- Only a process with the appropriate override privileges can specify the
- security attributes associated with the data it sends. To specify an
- attribute, a process must have the override privilege corresponding to
- the attribute. The override privilege required to specify an attribute
- is implementation specific.
-
- The same set of capabilities are required to set the outgoing attributes
- of a message as tttt6666sssseeeetttt____eeeennnnddddpppptttt____ddddeeeeffffaaaauuuulllltttt does to set the endpoint defaults.
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- The return value is the number of bytes actually sent, or the appropriate
- error.
-
- It is critical that the return value always be checked, for the addition
- of security means that access to an endpoint may be revoked in response
- to a security violation.
-
- EEEERRRRRRRROOOORRRRSSSS
- [EBADF] ffffdddd is an invalid file descriptor.
-
- [EINTR] The operation was interrupted by delivery of a signal
- before any data could be buffered to be sent.
-
- [EINVAL] _t_o_l_e_n is not the size of a valid address for the specified
- address family.
-
- [EMSGSIZE] The socket requires that message be sent atomically, and
- the message was too long.
-
- [ENOMEM] There was insufficient memory available to complete the
- operation.
-
- [ENOSR] There were insufficient STREAMS resources available for
- the operation to complete.
-
- [ENOTSOCK] _f_d is not a socket.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- libt6(3N), t6set_attr(3N), t6set_endpt_default(3N).
-
- SSSSOOOOUUUURRRRCCCCEEEE
- Trusted Systems Interoperability Group
-
- NNNNOOOOTTTTEEEESSSS
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
-